<template>
	<view>
		<view class="top">
			<view class="search">
				<uni-easyinput class="innersearch" prefixIcon="search" v-model="inputvalue" placeholder="左侧图标" @iconClick="iconClick"></uni-easyinput>
			</view>
			<view class="btn2">
				<navigator :url="'/pages/index/cheer/cheer'">
					<text>列表模式</text>
				</navigator>
			</view>
		</view>

		<view class="page-body">
			<view class="page-section page-section-gap">
				<map style="width: 100%; height: 600px" :latitude="latitude" :longitude="longitude" :markers="covers"></map>
			</view>
		</view>
		<view>
			<view class="content">
				<view class="a">
					<view class="mid">
						<view class="name">中国石油加油站(人民路店)</view>

						<view class="local">中原区莲花街32号</view>
					</view>
					<navigator :url="'/pages/index/cheer/cheerDetail'" class="right">
						<view class="img">
							<image src="@/static/daohang.png" mode=""></image>
						</view>
					</navigator>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
export default {
	data() {
		return {
			id: 0, // 使用 marker点击事件 需要填写id
			title: 'map',
			latitude: 39.909,
			longitude: 116.39742,
			covers: [
				{
					latitude: 39.909,
					longitude: 116.39742,
					iconPath: '@/static/定位2@2x.png'
				},
				{
					latitude: 39.9,
					longitude: 116.39,
					iconPath: '@/static/定位2@2x.png'
				}
			]
		};
	},
	methods: {}
};
</script>

<style>
page {
	background-color: #fff;
}
.top {
	display: flex;
}
.search {
	width: 270px;
	height: 45px;
	background-color: #efeff5;
	margin-left: 10px;
}
.innersearch {
	width: 260px;
	height: 28px;
	margin: 4px 6px 4px 4px;
}
.btn2 {
	margin-left: 10px;
	margin-top: 5px;
}
.btn2 text {
	font-weight: bold;
}
.content {
	width: 372px;
	height: 120px;
	border: 1px solid #f2f2f2;
	background-color: #f2f2f2;
	margin: 3px auto;
	background-color: #fff;
	position: fixed;
	bottom: -5px;
}

.a {
	display: flex;
}

.name {
	width: 230px;
	height: 25px;
	margin-top: 30px;
	font-size: 16px;
	font-weight: bold;
}

.local {
	margin-top: 8px;
}
.mid {
	margin-left: 15px;
}
.right {
	width: 50px;
	height: 90px;
	color: #0055ff;
	margin-top: 10px;
}
.img image {
	width: 50px;
	height: 50px;
	margin-top: 30px;
	margin-left: 30px;
}
</style>
